<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class Recharge extends Validate
{
    protected $rule = [
        'id' => 'require',
        'account' => 'require',
        'mode' => 'require',
        'amount' => 'require|gt:0'
    ];

    protected $message = [
        'id.require' => '请选择充值会员',
        'account.require' => '请选择充值账户',
        'mode.require' => '请选择充值方式',
        'amount.require' => '请填写充值金额',
        'amount.gt' => '充值金额有误'
    ];
}